package com.luck.emp.wh.logic;

import java.util.List;

import com.luck.emp.entity.EmpTWarehouse;
import com.luck.emp.wh.qry.WhQry;
import com.luck.pf.common.entity.UserBean;
import com.luck.pf.framework.logic.IBaseLogic;
import com.luck.pf.util.Page;

/**
 * 说明
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public interface IWhLogic extends IBaseLogic{
	/**
	 * 保存
	 **/
	public String saveWh(UserBean userBean, EmpTWarehouse entity) throws Exception;
	/**
	 * 删除
	 */
	public String deleteWh(UserBean userBean, EmpTWarehouse entity)  throws Exception;
	/**
	 * 查找分页信息
	 */
	public Page findWhPage(WhQry qry);
	/**
	 * 查找机构所有仓库
	 * @return
	 */
	public List<EmpTWarehouse> findWarehouse(Long deptId, String isDefault);
	/**
	 * 查询机构默认仓库
	 * @param deptId
	 * @return
	 */
	public EmpTWarehouse findDefaultWarehouse(Long deptId);
}